home *** CD-ROM | disk | FTP | other *** search
- .286
- ;=======================================
- ; Floating point without a coprocessor
- ;
- ;---------------------------------------
- cseg segment word public 'code'
- assume cs:cseg,ss:cseg
- assume ds:cseg,es:cseg
-
- include math.inc
-
- ;=======================================
- ; invoke ftrecip, addr real
- ;
- ; Returns real = 1/real
- ;---------------------------------------
- ftrecip proc near uses si, real:NPR10
- local one:REAL10
-
- mov si, real
- invoke load1, addr one
- invoke ftdiv, addr one, si
- invoke movx, si, addr one, 5
-
- ret
- ftrecip endp
-
- cseg ends
- end
-